package com.yuke.cloud.service.api.pmc.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value="com.yuke.cloud.service.api.pmc.dto.ProdSpecInfoDto")
public class ProdSpecInfoDto {

    @ApiModelProperty(value="storageId主键，自增")
    private Long storageId;

    @ApiModelProperty(value="userId 用户Id")
    private Long userId;

    @ApiModelProperty(value="specId主键，自增")
    private Long specId;

    private List<Long> specIds;

    @ApiModelProperty(value="修改人id")
    private Long updateUserId;

    @ApiModelProperty(value="productId商品编号，与商品表关联")
    private Long productId;

    private String productName;

    private String supplierName;

    @ApiModelProperty(value="specName商品名称")
    private String specName;

    @ApiModelProperty(value="specCode商品货号")
    private String specCode;

    @ApiModelProperty(value="description商品描述")
    private String description;

    @ApiModelProperty(value="unitType单位类型，0：未知，1：克，2：毫升，3：箱，4：袋，5：盒，6：瓶，7：罐，8：件，9：条，10：支，11：台，12，双。")
    private Byte unitType;

    private Integer unitNumber;

    private Long unitSpec;

    @ApiModelProperty(value="isReturn是否支持退货")
    private Boolean isReturn;

    @ApiModelProperty(value="returnPeriod支持几天内退货")
    private Byte returnPeriod;

    @ApiModelProperty(value="picture商品展示图片")
    private String picture;

    private String bigPic;

    @ApiModelProperty(value="categoryId该商品所属的分类")
    private Long categoryId;

    @ApiModelProperty(value="brandId该商品所属的分类")
    private Long brandId;

    private String categoryName;

    @ApiModelProperty(value="parentId该商品所属的分类")
    private Long parentId;

    @ApiModelProperty(value="stockPrice价格")
    private Integer stockPrice;

    @ApiModelProperty(value="salePrice销售价格")
    private Integer salePrice;

    @ApiModelProperty(value="guidancePrice指导价格")
    private Integer guidancePrice;

    @ApiModelProperty(value="introduce商品详情")
    private String introduce;

    @ApiModelProperty(value="isEnable商品规格是否启用")
    private Byte isEnable;

    @ApiModelProperty(value="weight商品重量")
    private Integer weight;

    @ApiModelProperty(value="quality商品的保质期（天）")
    private Integer quality;

    @ApiModelProperty(value="是否为厂家直销商品")
    private Boolean isFactory;

    @ApiModelProperty(value="商品生产厂家ID")
    private Long factoryId;

    @ApiModelProperty(value="是否支持分销，如果支持分销，则云顶商人（店铺）通过该商品分销后可获得佣金")
    private Boolean isRetail;

    @ApiModelProperty(value="销售类型，1：零售，2：批发，3：零售+批发")
    private Byte saleType;

    @ApiModelProperty(value="销售总量")
    private Long saleCount;

    @ApiModelProperty(value = "是否有搭赠活动")
    private Boolean hasTying;  // 0: 没有搭赠活动，1：有搭赠活动

    @ApiModelProperty(value = "搭赠商品id")
    private Long giftSpecId;

    @ApiModelProperty(value = "是否打折")
    private Byte hasDiscount;

    @ApiModelProperty(value = "是否满减")
    private Byte hasReduction;

    @ApiModelProperty(value = "是否返利")
    private Byte hasRebate;

    @ApiModelProperty(value = "仓库ID")
    private Long warehouseId;

    @ApiModelProperty(value = "仓库城市ID")
    private Long wareCityId;

    @ApiModelProperty(value = "仓库所在城市名称")
    private String wareCityName;

    @ApiModelProperty(value = "仓库库存")
    private Integer stockCount;

    private List<ProdAttributeDto> prodAttributes;

    @ApiModelProperty(value="parentId该商品所属的分类")
    private String parentName;

}
